Scroll to navigation

mysql_store_result(3) MariaDB Connector/C mysql_store_result(3)

Name

mysql_store_result - returns a buffered result set

Synopsis

#include <mysql.h>
MYSQL_RES * mysql_store_result(MYSQL * mysql);
    

Description

Returns a buffered resultset from the last executed query. ### Notes

mysql_field_count() (imysql_field_count) indicates if there will be a result set available.
The memory allocated by mysql_store_result() needs to be released by calling the function mysql_free_result(3).

Parameters

mysql is a connection identifier, which was previously allocated by mysql_init(3) and connected by mysql_real_connect(3).

Return value

Returns a buffered result set or NULL in case an error occured or if the query didn’t return data (e.g. when executing an INSERT, UPDATE, DELETE or REPLACE statement). ## See also * mysql_free_result(3) * mysql_use_result(3) * mysql_real_query(3) * mysql_field_count(3)

Version 3.2.2